package com.exchange.View;

import android.content.Context;
import android.content.res.Resources;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import com.exchange.Public.h;
import com.exchange.View.a.d;
import com.exchange.View.a.e;

public class h
{
  private ViewGroup a;
  private Context b;
  private ImageView c;
  private RelativeLayout d;
  private boolean e;

  public h(Context paramContext, ViewGroup paramViewGroup)
  {
    this.a = paramViewGroup;
    this.b = paramContext;
    this.c = new ImageView(this.b);
    this.c.setImageDrawable(this.b.getResources().getDrawable(d.h(this.b)));
    this.e = false;
    RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(com.exchange.Public.h.a(60, this.b), com.exchange.Public.h.a(60, this.b));
    localLayoutParams.addRule(13);
    this.d = new RelativeLayout(this.b);
    this.d.addView(this.c, localLayoutParams);
  }

  public void a()
  {
    if (this.e);
    while (true)
    {
      return;
      this.e = true;
      ViewGroup.LayoutParams localLayoutParams = new ViewGroup.LayoutParams(-1, -1);
      this.a.addView(this.d, localLayoutParams);
      this.d.setVisibility(0);
      Animation localAnimation = AnimationUtils.loadAnimation(this.b, e.f(this.b));
      localAnimation.setInterpolator(new LinearInterpolator());
      localAnimation.setAnimationListener(new y(this));
      this.c.startAnimation(localAnimation);
    }
  }

  public void b()
  {
    if (!(this.e));
    while (true)
    {
      return;
      this.e = false;
      this.a.removeView(this.d);
    }
  }
}